package com.scm.persist.mybatis.purchase;

import com.scm.persist.model.purchase.ScmPurchase;
import com.scm.persist.model.purchase.ScmPurchaseExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmPurchaseMapper {
    int countByExample(ScmPurchaseExample example);

    int deleteByExample(ScmPurchaseExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmPurchase record);

    int insertSelective(ScmPurchase record);

    List<ScmPurchase> selectByExampleWithRowbounds(ScmPurchaseExample example, RowBounds rowBounds);

    List<ScmPurchase> selectByExample(ScmPurchaseExample example);

    ScmPurchase selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ScmPurchase record, @Param("example") ScmPurchaseExample example);

    int updateByExample(@Param("record") ScmPurchase record, @Param("example") ScmPurchaseExample example);

    int updateByPrimaryKeySelective(ScmPurchase record);

    int updateByPrimaryKey(ScmPurchase record);
}
